#ifndef __CONFIG_H__
#define __CONFIG_H__
#include <stdio.h>

#define LOG_LEVEL 2

#define LOG_PRINT(level, format, ...) \
do { \
if ((level) <= LOG_LEVEL) { \
printf("[级别: %d] " format "\n", (level), ##__VA_ARGS__); \
} \
} while (0)

#define LOG(format, ...) \
printf("[文件: %s, 行: %d, 函数: %s] " format "\n", __FILE__ , __LINE__, __func__, ##__VA_ARGS__)


#endif

